import os
import re
from inspect import currentframe, getframeinfo
from concurrent.futures import ThreadPoolExecutor
import threading

content = \
    """
    ohos_source_set("grpcpp") {
      public_deps = [
        ":gpr",
        ":grpc",
        "third_party/address_sorting:address_sorting",
        "//third_party/protobuf:protobuf_lite",
      ]
      public_configs = [ ":pulbic_grpc_config" ]
      configs = [ ":private_grpc_config" ]
      include_dirs = [
        "src/core/ext/upb-generated",
        "src/core/ext/upbdefs-generated",
      ]
      install_dir = "hello"
    
    }
    
    xxxxxxxxxx
    
     ohos_source_set("grapcpp") {
          public_deps = [
            ":gpr",
            ":grpc",
            "third_party/address_sorting:address_sorting",
            "//third_party/protobuf:protobuf_lite",
          ]
          public_configs = [ ":pulbic_grpc_config" ]
          configs = [ ":private_grpc_config" ]
          include_dirs = [
            "src/core/ext/upb-generated",
            "src/core/ext/upbdefs-generated",
          ]
          xxx_install_dir = "hello"
          part_name = "abc"
          subsystem_name = "bca"
     }
    """

def sayhello(name:str)->int:
      print("hello, {}".format(name))
      return 1
    
sh = threading.Thread(target=sayhello, args=("biubiu"))
sh.start()
sh.join()

with ThreadPoolExecutor() as pool:
  f = pool.submit(sayhello, "biubiu")
  print(f.result())
